package cn.zbmao.web.entity;

import cn.zbmao.fc.FcTool;
import org.apache.commons.lang.StringUtils;

/**
 * Created by huangzheng on 2014/10/28.
 */
public class TenderNews extends News{

    private int infoId;
    private String content;
    private String contentFc;

    private String tenderId;//招标编号

    private int timeLong;// 处理时间

    //地域信息
    private int city;//城市id
    private int province;//省份id

    //招标开始时间
    private int stime;// 招标开始时间
    private int etime;// 招标截止时间

    private String agent;// 代理机构
    private String subscriber;// 招标用户单位
    private String subscriberFc;
    private String agentContact;// 代理联系人
    private String agentAdd;// 代理联系地址
    private String agentPhone;// 代理联系电话
    private String itemAmount;//招标预算金额
    private String qualification;

    //中标信息
    private String winBidCompany;
    private Double winBidFigure;
    private int tenderResultEndTime;
    private String titleFc;
    private String winBidCompanyFc;

    //信息类型归类
    private int type;

    //是否分析
    private int isAnalyst;

    //招标信息-0 中标信息-1
    private int category;



    public int getIsAnalyst() {
        return isAnalyst;
    }

    public void setIsAnalyst(int isAnalyst) {
        this.isAnalyst = isAnalyst;
    }



    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }





    public String getWinBidCompany() {
        return winBidCompany;
    }

    public void setWinBidCompany(String winBidCompany) {
        setWinBidCompanyFc(winBidCompany);
        this.winBidCompany = winBidCompany;
    }

    public Double getWinBidFigure() {
        return winBidFigure;
    }

    public void setWinBidFigure(Double winBidFigure) {
        this.winBidFigure = winBidFigure;
    }

    public String getTenderId() {
        return tenderId;
    }

    public void setTenderId(String tenderId) {
        this.tenderId = tenderId;
    }

    public int getTenderResultEndTime() {
        return tenderResultEndTime;
    }

    public void setTenderResultEndTime(int tenderResultEndTime) {
        this.tenderResultEndTime = tenderResultEndTime;
    }

    public String getTitleFc() {
        return titleFc;
    }

    @Override
    public void setTitle(String title) {
        setTitleFc(title);
        super.setTitle(title);
    }

    public void setTitleFc(String title) {
        if (StringUtils.isBlank(title))return;
//        this.titleFc = FcUtil.fc(title);
        this.titleFc= FcTool.getFc().indexFc(title);
    }

    public String getWinBidCompanyFc() {
        return winBidCompanyFc;
    }

    public void setWinBidCompanyFc(String winBidCompany) {
        if (StringUtils.isBlank(content))return;
//        this.winBidCompanyFc = FcUtil.fc(winBidCompany);
        this.winBidCompanyFc=FcTool.getFc().indexFc(winBidCompany);
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTimeLong() {
        return timeLong;
    }

    public void setTimeLong(int timeLong) {
        this.timeLong = timeLong;
    }

    public String getContentFc() {
        return contentFc;
    }

    public void setContentFc(String content) {
        if (StringUtils.isBlank(content))return;
//        this.contentFc = FcUtil.fc(content);
        this.contentFc=FcTool.getFc().indexFc(content);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        setContentFc(content);
        this.content = content;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public int getCity() {
        return city;
    }

    public void setCity(int city) {
        this.city = city;
    }

    public int getProvince() {
        return province;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public int getStime() {
        return stime;
    }

    public void setStime(int stime) {
        this.stime = stime;
    }

    public int getEtime() {
        return etime;
    }

    public void setEtime(int etime) {
        this.etime = etime;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getSubscriber() {
        return subscriber;
    }

    public void setSubscriber(String subscriber) {
        setSubscriberFc(subscriber);
        this.subscriber = subscriber;
    }

    public String getSubscriberFc() {
        return subscriberFc;
    }

    public void setSubscriberFc(String subscriber) {
        if (StringUtils.isBlank(subscriber))return;
//        this.subscriberFc = FcUtil.fc(subscriber);
        this.subscriberFc=FcTool.getFc().indexFc(subscriber);
    }

    public String getAgentContact() {
        return agentContact;
    }

    public void setAgentContact(String agentContact) {
        this.agentContact = agentContact;
    }

    public String getAgentAdd() {
        return agentAdd;
    }

    public void setAgentAdd(String agentAdd) {
        this.agentAdd = agentAdd;
    }

    public String getAgentPhone() {
        return agentPhone;
    }

    public void setAgentPhone(String agentPhone) {
        this.agentPhone = agentPhone;
    }

    public String getItemAmount() {
        return itemAmount;
    }

    public void setItemAmount(String itemAmount) {
        this.itemAmount = itemAmount;
    }

    public String getQualification() {
        return qualification;
    }

    public void setQualification(String qualification) {
        this.qualification = qualification;
    }
}
